//
//  HomeTableViewController.swift
//  sinaweibo
//
//  Created by IZEN on 16/3/6.
//  Copyright © 2016年 IZEN. All rights reserved.
//

import UIKit
import SVProgressHUD
import AFNetworking

class HomeTableViewController: BaseTableViewController {
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        visitorView?.setupUpInfoWith("关注一些人,回到这里看看有什么惊喜", imageName: nil)
        
    }
    

    func demo() {
        
        let AFN = AFHTTPSessionManager()
        
        AFN.responseSerializer.acceptableContentTypes?.insert("text/html")
        
        SVProgressHUD.show()
        
        AFN.GET("http://www.weather.com.cn/data/sk/101010100.html", parameters: nil, progress: nil, success: { (task, result) -> Void in
            print(result)
            }) { (task, result) -> Void in
                print("error")
                SVProgressHUD.showErrorWithStatus("呀呼  没网啊")
        }
        
    }

}
